package com.fastloan.mgt.product.flow.service;

import com.fastloan.mgt.product.expection.ProductApproveException;
import com.fastloan.mgt.product.flow.model.ProductFlow;
import com.kawins.base.BaseService;

import java.util.List;
import java.util.Map;

/**
 * @author admins
 *         createTime 2017/11/08
 */
public interface ProductFlowService extends BaseService<ProductFlow> {
    Integer insertList(List<ProductFlow> list);

    Map<String ,Object> getProcessFunction(String productId);

    Integer getProductFlowCount(String productId);

    boolean ifHaveApprove(String productId);

    Integer pageFlow (List<ProductFlow> productFlowList) throws ProductApproveException;
}
